<?php
if(!session_id()) { session_start(); }
include_once('../classes/portfolio.class.php');
$portfolio = new Portfolio();
$result = $portfolio->getCalculatorType();
	$newType = 0;
if($result == 0) {
	$newType = 1;
}
$final = $portfolio->changeCalculatorType($newType);
echo $final;
?>